#ifndef _CARD_LEVEL_UP_LAYER_H
#define _CARD_LEVEL_UP_LAYER_H

#include "cocos2d.h"

USING_NS_CC;

class CardLevelupLayer : public CCLayer
{
public:
	CardLevelupLayer();
	~CardLevelupLayer();
	CREATE_FUNC(CardLevelupLayer);
	bool init();

private:
	void initframe();
	void initcontent();
	void Menu_Return_Call_Back(CCObject* pObject);
	void Menu_CardLeveup_Call_Back(CCObject* pObject);
	void Menu_Chose_Card_To_Feed_Call_Back(CCObject* pObject);
	void Card_Flash_Done(CCNode* pCCNode);
	virtual void update(float diff);

private:

	CCSprite* Card_Levelup_Base;
	CCSprite* Card_Levelup_Pro;

	std::vector<CCSprite*>Card_Levelup_BackGround;

	CCSprite* Card_Levelup_Left_Food_Card_0;
	CCSprite* Card_Levelup_Left_Food_Card_1;
	CCSprite* Card_Levelup_Left_Food_Card_2;
	CCSprite* Card_Levelup_Right_Food_Card_0;
	CCSprite* Card_Levelup_Right_Food_Card_1;
	CCSprite* Card_Levelup_Right_Food_Card_2;

	CCSprite* Need_Eat_Pro_Base;


	CCMenuItemSprite* Chose_Food_Item;
	CCMenuItemSprite* Start_Levelup_Item;

	CCNode* Main_Card;
	CCNode* Food_Card_0;
	CCNode* Fodd_Card_1;
	CCNode* Food_Card_2;
	CCNode* Food_Card_3;
	CCNode* Food_Card_4;
	CCNode* Food_Card_5;

	CCSprite* add[6];
	CCLabelTTF* Need_Exp;
	CCLabelTTF* Get_Exp;
	CCLabelTTF* Need_Coin;

	CCNode* littlecard[6];
	CCSprite* little_card_flash_sprite[6];
	CCProgressTimer* Levelup_Progress;
	CCSprite* progress_fr;
};


#endif